package com.ouc.entity;

import lombok.Data;

import java.sql.Timestamp;
import java.util.List;

/**
 * @Name: Order
 * @Description: 订单
 * @Author: Mr.Tong
 */
@Data
public class Order {
    //订单号码
    private String orderNum;
    //用户Id
    private Integer userId;
    //订单的创建时间
    private Timestamp startTime;
    //收货人地址外键
    private Integer shippingAddressId;

    //订单总价格   数据库中不存
    private Double totalPrice;

    //地址
    private ShippingAddress shippingAddress;
    private List<OrderItem> orderItems;
}
